package service.impl;

import dao.LunboMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Lunbo;
import service.LunboService;

import java.util.List;

@Service
public class LunboServiceImpl implements LunboService {

    @Autowired
    private LunboMapper lunboMapper;

    @Override
    public int add(Lunbo lunbo) {
        return lunboMapper.add(lunbo);
    }

    @Override
    public List<Lunbo> findEnabled() {
        return lunboMapper.findEnabled();
    }

    @Override
    public List<Lunbo> findAll() {
        return lunboMapper.findAll();
    }

    @Override
    public Lunbo findById(Integer id) {
        return lunboMapper.findById(id);
    }

    @Override
    public int update(Lunbo lunbo) {
        return lunboMapper.update(lunbo);
    }

    @Override
    public int deleteById(Integer id) {
        return lunboMapper.deleteById(id);
    }
}